package states;

import hypeerweb.Node;

public class HypercubeCapState extends NodeState 
{

    public NodeState getNextNodeState(Node n) 
    {
        return StandardNodeState.getSingleton();
    }

    public String toString() 
    {
        return "Hypercube Cap State";
    }
    
    public static final int STATE_ID = 2;
    
    private static NodeState singleton = null;
    
    public static NodeState getSingleton()
    {
        if(singleton == null)
        {
            singleton = new HypercubeCapState();
        }
        return singleton;
    }

    public NodeState getChildNodeState()
    {
        return getSingleton();
    }
    
    public NodeState getParentNodeState()
    {
        return getSingleton();
    }
    
    public int getId()
    {
        return STATE_ID;
    }

    public Node getNextNode(Node n) 
    {
        assert(false); // if we get here, we screwed up
        return null;
    }

}
